<?php

namespace common\models\datas;

use Yii;

/**
 * This is the model class for table "{{%type_brand}}".
 *
 * @property integer $type_id
 * @property integer $brand_id
 * @property integer $sort
 */
class TypeBrand extends \common\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%type_brand}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['type_id', 'brand_id', 'sort'], 'integer']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'type_id' => Yii::t('common', '类型id'),
            'brand_id' => Yii::t('common', '品牌id'),
            'sort' => Yii::t('common', '排序（数字越大越靠前）'),
        ];
    }
}
